package org.example.booksmanagementsystem.model;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {

    //当前页数据的总条数
    private int total;

    //当前页的数据
    private List<T> bookInfoList;

    private PageRequest pageRequest;

    public PageResult(int count,List<T> bookInfoList, PageRequest pageRequest){
        this.total = count;
        this.bookInfoList = bookInfoList;
        this.pageRequest = pageRequest;
    }
}
